package com.facebook.presto.tdengine;

import com.facebook.presto.spi.ConnectorTableHandle;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class TdEngineTableHandle implements ConnectorTableHandle {
    private String schemaName;
    private String tableName;
    private String connectorId;

    public TdEngineTableHandle() {
    }

    @JsonProperty
    public String getSchemaName() {
        return schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }

    @JsonProperty
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    @JsonProperty
    public String getConnectorId() {
        return connectorId;
    }

    @JsonProperty
    public void setConnectorId(String connectorId) {
        this.connectorId = connectorId;
    }

    @JsonCreator
    public TdEngineTableHandle(@JsonProperty("schemaName") String schemaName
            , @JsonProperty("tableName") String tableName, @JsonProperty("connectorId") String connectorId) {
        this.schemaName = schemaName;
        this.tableName = tableName;
        this.connectorId = connectorId;

    }
}
